package com.yifang.yibingproject.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifang.yibingproject.entity.SysLogEntity;
import com.yifang.yibingproject.query.LogPageQuery;

import java.time.LocalDateTime;
import java.util.List;

public interface SysLogService extends IService<SysLogEntity> {


    void add(SysLogEntity entity);

    /**
     * 检查日志表是否存在，如果不存在则创建
     */
    void checkTableIfNotCreate();

    Page<SysLogEntity> list(LogPageQuery query);

    List<SysLogEntity> listByDate(String tableName, LocalDateTime start, LocalDateTime end);

    List<SysLogEntity> listByDateMember(String shopId, String tableName, LocalDateTime start, LocalDateTime end);
}
